package com.syeet.gulimall.order.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author xhl
 * @date 2023/7/21
 */
public class NoStockException extends RuntimeException {
    @Getter
    @Setter
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id:" + skuId + "的商品没有足够库存");

    }
    public NoStockException(String msg) {
        super(msg);

    }
}
